package no.ntnu.item.ttm4115.termproject.treasureagent;

import no.ntnu.item.ttm4115.termproject.RegisterTA;
import no.tellu.common.javaframe.ActorAddress;
import no.ntnu.item.ttm4115.termproject.HelloToTreasureAgent;


public class TreasureAgentActions extends Object {

	public static void sendRegisterTA(HelloToTreasureAgent signal, TreasureAgentSM asm){
	    // 

		System.out.println("Treasure Agent"+asm.myActorId+ " is initialized");
		System.out.println("Test");
		
		//Using Game Manager as registry as well
		asm.sendMessage(new RegisterTA(asm.getMyActorAddress()), signal.getSenderRole());

	}

	public static void sendRegTA(HelloToTreasureAgent signal, TreasureAgentSM asm){
	    // 
		asm.sendMessage(new RegisterTA(asm.getMyActorAddress()), signal.getSenderRole());
	}



}
